{% extends 'TopxiaWebBundle::bootstrap-modal-layout.html.twig' %}

{% block title %}
{{'公告管理'|trans}}
{% endblock %}

{% block body %}
<ul class="nav nav-tabs mbm">
	<li {% if tab == "manage" %}class="active"{% endif %}>
		<a href="javascript:;" data-role="announcement-modal" data-url="{{path('announcement_add',{targetType:targetType, targetId:targetId})}}">{% if announcement.id|default(null) %}{{'编辑公告'|trans}}{% else %}{{'添加公告'|trans}}{% endif %}</a>
	</li>
	<li {% if tab == "list" %}class="active"{% endif %}>
		<a href="javascript:;" data-role="announcement-modal" data-url="{{path('announcement_list',{targetType:targetType, targetId:targetId})}}">{{'历史公告'|trans}}</a>
	</li>
</ul>
{% block content %}{% endblock %}

{% endblock %}